import request from '@/utils/request'

// 查询小区管理列表
export function listResidentialquarters(query) {
  return request({
    url: '/nucleic/residentialquarters/list',
    method: 'get',
    params: query
  })
}

// 查询小区管理详细
export function getResidentialquarters(id) {
  return request({
    url: '/nucleic/residentialquarters/' + id,
    method: 'get'
  })
}

// 新增小区管理
export function addResidentialquarters(data) {
  return request({
    url: '/nucleic/residentialquarters',
    method: 'post',
    data: data
  })
}

// 修改小区管理
export function updateResidentialquarters(data) {
  return request({
    url: '/nucleic/residentialquarters',
    method: 'put',
    data: data
  })
}

// 删除小区管理
export function delResidentialquarters(id) {
  return request({
    url: '/nucleic/residentialquarters/' + id,
    method: 'delete'
  })
}
